<?php defined('BASE_PATH') or die('No direct script access.');
/*
 * File : controller.php
 * Type : Class controller
 * Module : index
 * Date : 26/11/2010
*/
Class CategoryController extends BE_Controller {
    function __construct($registry) {
        parent::__construct($registry);
        $this->language->load('category');
        $this->load->model('category/Mcategory');
    }
    public function index() {
//        $this->Mcategory->index();
        $this->template->write('title',$this->language->get('heading_title'));
        /** Nạp template ** */
        $this->template->write('breadcrumb',array(
                'category#'=>'Category',
        ));
        $data['module']='category';
        $this->template->view('left','category','admin/index',$data);
        #render để hoàn tất load template
        $this->template->render();
    }
    public function add() {
//        $this->Mcategory->index();
        $this->template->write('title', 'Add - Category - Balô ngược administrator');
        /** Nạp template ** */       
        $this->template->write('breadcrumb',array(
                'category'=>'Category',
                'add#'=>'Add',
        ));
        $data['module']='category';
        $this->template->view('left','category','admin/index',$data);
        #render để hoàn tất load template
        $this->template->render();
    }

}
// end of file index controller
